package com.zzy.common.entity.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import static com.zzy.common.entity.db.PermissionDaoEntity.TableFiledConst.PERMISSION;
import static com.zzy.common.entity.db.PermissionDaoEntity.TableFiledConst.TABLE_NAME;

/**
 * @author zhuZhaoYang
 * @date 2021/7/11 22:00
 */
@TableName(TABLE_NAME)
@Data
public class PermissionDaoEntity {

    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField(PERMISSION)
    private String permission;
    @TableField(TableFiledConst.ACTOR_ID)
    private Integer actorType;

    public static class TableFiledConst {
        public static final String TABLE_NAME = "permission";
        public static final String PERMISSION = "permission";
        public static final String ID = "id";
        public static final String ACTOR_ID = "actorType";
    }
}
